function chaneg (str, flag) {
  let arr = str.split('')
  for (let i = 0; i < arr.length; i++) {
    arr[i] = arr[i].toLowerCase()
  }
  return arr.join('')
}
let str = 'woshiShabi'
console.log(chaneg(str));